/**
 * AppService.java
 */
package org.yate.oa.service.imp;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.yate.oa.dao.IBaseMapperDao;
import org.yate.oa.dao.mapper.RelationMapper;
import org.yate.oa.model.RelationEntity;
import org.yate.oa.service.IRelationService;

@Service
public class RelationService extends BaseService<RelationEntity, Integer> implements IRelationService {

	@Resource(name = "relationMapper")
	private RelationMapper relationDao;

	@Override
	public List<RelationEntity> getEntitiesBy(RelationEntity e) {
		return relationDao.getEntitiesBy(e);
	}

	@Override
	public RelationEntity getEntityBy(RelationEntity e) {
		return relationDao.getEntityBy(e);
	}

	@Override
	public void removeBy(RelationEntity e) {
		relationDao.removeBy(e);
	}

	@Override
	protected IBaseMapperDao<RelationEntity, Integer> getMapperDao() {
		return this.relationDao;
	}

	@Override
	public void updateBatch(Map<String, Integer> map) {
		relationDao.updateBatch(map);
	}

}
